
cc.Class({
    extends: cc.Component,

    properties: {

    },
    //当脚本所在节点产生碰撞时，影擎自动调用
    onCollisionEnter(other, self) {
        if (this.price <= 0) {
            return;
        }
        if (other.hp <= 0) {
            return;
        }
        this.price--;
        g_Bullet.onCollisionEnter(other.node, self.node);
    },
    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start() {
        this.price = 1;
    },

    // update (dt) {},
});
